package com.example.demo.repo

import com.example.demo.entity.Artwork
import org.springframework.data.jpa.repository.JpaRepository

interface ArtworkRepo : JpaRepository<Artwork, Long> {

    //2,3,4
    fun findByNameContainsAndKidName(name: String, kindName: String): List<Artwork>

    fun findByIpName(ipName: String):List<Artwork>
    //1
//    fun findByNameContainsOrActsCidNameContains(name: String, celebrityName: String): List<Artwork>

    //5
//    fun findByActsCidNameContains(celebrityName: String): List<Artwork>

}

